<header>
  <div class="header-top tr">
  	<p>  	
  	<?php if(!Yii::app()->user->isGuest){?>
    <strong><?php echo Yii::app()->user->name;?></strong> | <a href="index.php?r=user/logout">退出</a>
  	<?php }else{ ?>
    <a href="index.php?r=user/login">登录</a>    
    <?php } ?>
    <span id="system"><?php echo CHtml::encode(Yii::app()->name); ?></span>
    </p>
  </div>
  <div class="header-middle"> 
    <!-- Start Nav -->
    <?php $this->widget('zii.widgets.CMenu',array(
		'id' => 'nav',
		'items'=>array(
			array('label'=>'系统帮助', 'url'=>array('/helper/admin'), 'linkOptions'=>array('class'=>'help')),
			array('label'=>'系统管理', 'url'=>array('/unit/admin'), 'linkOptions'=>array('class'=>'settings')),	
			array('label'=>'综合统计分析', 'url'=>array('/btBatterys/admin'), 'linkOptions'=>array('class'=>'tongji')),						
			array('label'=>'运营管理', 'url'=>array('//mtsysBase/admin'), 'linkOptions'=>array('class'=>'yunying')),
			array('label'=>'基础信息管理', 'url'=>array('/dictManufacturer/admin'), 'linkOptions'=>array('class'=>'dashboard')),
		),
		'htmlOptions'=>array(			
			'class' => 'fr'
		),
		'activeCssClass'=>'current',
	)); ?>   
    <!-- End Nav --> 
    <!-- Start Logo --> 
    <div id="logo">
		<?php
			echo CHtml::image(Yii::app()->baseUrl.'/images/logo.png','description', array('width'=>'200px','height'=>'70px'));
		?>
	</div> 
    <!-- End Logo --> 
    <br class="cl">
  </div>
  <div class="header-bottom"> 
    <!-- Start Breadcrumbs -->
    <?php 	
	if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?>
	<?php endif?>    
    <!-- End Breadcrumbs --> 
  </div>
</header>